<?php framework::view('index/header')?>
<script type="text/javascript">
</script>
<?php framework::view('index/userleft')?>
<div style="" class="lrtab">
	<a href="<?php echo HIGHPHP_WWW_HOST?>user" class="lrtabon" style="border-left: solid 1px #DFDFDF">基本信息</a> 
    <a href="<?php echo HIGHPHP_WWW_HOST?>user/basicinfo">个人资料</a>
    <a href="<?php echo HIGHPHP_WWW_HOST?>user/address">收货地址</a>
    <a href="<?php echo HIGHPHP_WWW_HOST?>user/bank">银行信息</a>

</div>
<div class="clear"></div>
<div>
	<table cellpadding="3" cellspacing="1" class="ctable" style="width:100%;float:left;">
		<tr  class="tr2" style="height:50px;">
			<td colspan="2">^_^ 亲爱的 <span class="username"><?php echo $user['username'];?></span> <?php echo user::dayTimeHello();?>
			</td>
			<td style="text-align: center;">
			<span style="display: inline-block;">今天 星期<?php echo user::getWeekDay();?> 
			<a class="point" href="javascript:sign();">立即签到</a>
			你已连续签到<span class="point">1</span>次
			</span><br><span style="color:#007CDD">签到免费赠积分，连续签到更可获得神秘礼包噢！</span>
			</td>
		</tr>
		<tr class="tr1">
			<td align="right" style="width: 70px;">您的等级：</td>
			<td><span class="exp"><?php echo User::getUserLevel($user['exp']);?></span>级</td>
			<td align="center">2012/12/26 签得<span class="point">2</span>分</td>
		</tr>
		<tr class="tr1">
			<td align="right">经验值：</td>
			<td><span class="exp"><?php echo $user['exp'].'/'.User::getNextExp($user['exp']);?></span></td>
			<td align="center">2012/12/25 签得<span class="point">4</span>分</td>
		</tr>
		<tr class="tr1">
			<td align="right">剩余积分：</td>
			<td><span class="point"><?php echo $user['point']?></span> 积分 
			<?php if (date("d")>20 and $user['point']>5000){?>
			<a href="#">立即申请兑换现金</a><?php }else{?>每月20日后可以申请兑换现金<?php }?></td>
			<td align="center">2012/12/23 签得<span class="point">5</span>分</td>
		</tr>
		<tr class="tr1">
			<td align="right">累计赚得：</td>
			<td><span class="point"><?php echo $user['totalpoint']?></span> 积分</td>
			<td align="center">2012/12/15 签得<span class="point">2</span>分</td>
		</tr>
		<tr class="tr1">
			<td align="right">累计消费：</td>
			<td><span class="point"><?php echo $user['totalexpend'];?></span> 积分</td>
			<td align="center">2012/12/14 签得<span class="point">5</span>分</td>
		</tr>
		<tr class="tr1">
			<td align="right">发布信息：</td>
			<td> <span class="point"><?php echo $user['publish']?></span> 条</td>
			<td align="center">2012/12/13 签得<span class="point">1</span>分</td>	
		</tr>
	</table>
</div>
<?php framework::view('index/userfooter')?>
<?php framework::view('index/footer')?>